#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#include <QTcpSocket>
#include<QLabel>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class communication_user : public QMainWindow
{
    Q_OBJECT

public:
    communication_user(int currentID, QString &role, QWidget *parent = nullptr);
    ~communication_user();

private slots:

    void on_sendMsg_clicked();

    void on_connect_clicked();

    void on_disconnect_clicked();

private:
    Ui::MainWindow *ui;

    QTcpSocket *m_tcp;
    QLabel *m_status;
    int currentID;
    QString role;
};
#endif // MAINWINDOW_H
